package com.bxx.common.dto;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.time.LocalDateTime;

@Data
public class CommentDto implements Serializable {
    @TableId(value = "id")
    private Long id;

    @TableField(value = "tourist_id")
    private Long touristId;

    private String name;

    @TableField(value = "blog_id")
    private Long blogId;



    @NotBlank(message = "评论内容不能为空")
    private String content;

    private Long parentId;

    private LocalDateTime created;

    private Integer status;
}
